using System;
using System.Collections.Generic;
using System.Text;

namespace CSharpLogicConectorTest
{
    class Program
    {
        static void Main(string[] args)
        {
            CSharpLogicConector csConector = CSharpLogicConector.Instance;
            csConector.prepareMethodClass("CSharpCalculator");
            csConector.prepareMethodName("buttonPressed");
            csConector.prepareMethodIntegerParameter(1, 0);//1
            csConector.prepareMethodStringReturnParameter();
            csConector.executeMethod();
            Console.WriteLine(csConector.getMethodReturnString());

            csConector.initializeMethod();
            csConector.prepareMethodClass("CSharpCalculator");
            csConector.prepareMethodName("buttonPressed");
            csConector.prepareMethodIntegerParameter(10, 0);//1
            csConector.prepareMethodStringReturnParameter();
            csConector.executeMethod();
            Console.WriteLine(csConector.getMethodReturnString());

            csConector.initializeMethod();
            csConector.prepareMethodClass("CSharpCalculator");
            csConector.prepareMethodName("buttonPressed");
            csConector.prepareMethodIntegerParameter(2, 0);//1
            csConector.prepareMethodStringReturnParameter();
            csConector.executeMethod();
            Console.WriteLine(csConector.getMethodReturnString());

            csConector.initializeMethod();
            csConector.prepareMethodClass("CSharpCalculator");
            csConector.prepareMethodName("buttonPressed");
            csConector.prepareMethodIntegerParameter(14, 0);//1
            csConector.prepareMethodStringReturnParameter();
            csConector.executeMethod();
            Console.WriteLine(csConector.getMethodReturnString());

            Console.ReadKey();
            /*MethodDefinition method = new MethodDefinition();     
            method.setClassName("CSharpCalculator");
			method.setMethodName("buttonPressed");
			method.addParameter(1,0);//1
		    method.setMethodReturnType(ParameterType.PARAMETER_STRING);
			method.callMethod();
			Console.WriteLine(method.getStringReturnValue());

            
            method = new MethodDefinition();
            method.setClassName("CSharpCalculator");
            method.setMethodName("buttonPressed");
            method.addParameter(10, 0);//PLUS
            method.setMethodReturnType(ParameterType.PARAMETER_STRING);
            method.callMethod();
            Console.WriteLine(method.getStringReturnValue());


            method = new MethodDefinition();
            method.setClassName("CSharpCalculator");
            method.setMethodName("buttonPressed");
            method.addParameter(2, 0);//2
            method.setMethodReturnType(ParameterType.PARAMETER_STRING);
            method.callMethod();
            Console.WriteLine(method.getStringReturnValue());

            
            method = new MethodDefinition();
            method.setClassName("CSharpCalculator");
            method.setMethodName("buttonPressed");
            method.addParameter(14, 0);//EQUALS
            method.setMethodReturnType(ParameterType.PARAMETER_STRING);
            method.callMethod();
            Console.WriteLine(method.getStringReturnValue());

            Console.ReadKey();

            MethodDefinition method = new MethodDefinition();     
            method.setClassName("CSharpCalculator");
			method.setMethodName("buttonPressed");
			method.addParameter(1,0);//1
		    method.setMethodReturnType(ParameterType.PARAMETER_STRING);
			method.callMethod();
			Console.WriteLine(method.getStringReturnValue());

            
            method = new MethodDefinition();
            method.setClassName("CSharpCalculator");
            method.setMethodName("buttonPressed");
            method.addParameter(10, 0);//PLUS
            method.setMethodReturnType(ParameterType.PARAMETER_STRING);
            method.callMethod();
            Console.WriteLine(method.getStringReturnValue());


            method = new MethodDefinition();
            method.setClassName("CSharpCalculator");
            method.setMethodName("buttonPressed");
            method.addParameter(2, 0);//2
            method.setMethodReturnType(ParameterType.PARAMETER_STRING);
            method.callMethod();
            Console.WriteLine(method.getStringReturnValue());

            
            method = new MethodDefinition();
            method.setClassName("CSharpCalculator");
            method.setMethodName("buttonPressed");
            method.addParameter(14, 0);//EQUALS
            method.setMethodReturnType(ParameterType.PARAMETER_STRING);
            method.callMethod();
            Console.WriteLine(method.getStringReturnValue());

            Console.ReadKey();*/
        }
    }
}
